package com.kgc.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.sql.Timestamp;
import java.util.Date;

public class UserRoom {
    private Integer id;
    private Integer userId;
    private Integer roomId;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Timestamp intime;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Timestamp outtime;
    private String uName;
    private String roomName;
    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public String getuName() {
        return uName;
    }

    public void setuName(String uName) {
        this.uName = uName;
    }

    public UserRoom(Integer id, Integer userId, Integer roomId, Timestamp intime, Timestamp outtime, String uName, String roomName) {
        this.id = id;
        this.userId = userId;
        this.roomId = roomId;
        this.intime = intime;
        this.outtime = outtime;
        this.uName = uName;
        this.roomName = roomName;
    }

    public UserRoom(Integer id, Integer userId, String uName, Timestamp intime, Timestamp outtime) {
        this.id = id;
        this.userId = userId;
        this.intime = intime;
        this.outtime = outtime;
        this.uName = uName;
    }

    public UserRoom() {
    }

    public UserRoom(Integer id, Integer userId, Integer roomId, Timestamp intime, Timestamp outtime) {
        this.id = id;
        this.userId = userId;
        this.roomId = roomId;
        this.intime = intime;
        this.outtime = outtime;
    }

    public UserRoom(Integer userId, Integer roomId, Timestamp intime, Timestamp outtime) {
        this.userId = userId;
        this.roomId = roomId;
        this.intime = intime;
        this.outtime = outtime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    public Date getIntime() {
        return intime;
    }

    public void setIntime(Timestamp intime) {
        this.intime = intime;
    }

    public Date getOuttime() {
        return outtime;
    }

    public void setOuttime(Timestamp outtime) {
        this.outtime = outtime;
    }
}